projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7edbb16
)
rework comp-new-frame
author
Andrea Corallo
<akrl@sdf.org>
Wed, 11 Sep 2019 19:56:26 +0000
(21:56 +0200)
committer
Andrea Corallo
<akrl@sdf.org>
Wed, 1 Jan 2020 10:37:47 +0000
(11:37 +0100)
lisp/emacs-lisp/comp.el
patch
|
blob
|
history
diff --git
a/lisp/emacs-lisp/comp.el
b/lisp/emacs-lisp/comp.el
index 4e3f0c91e31786c51ca169b437261b12dff85492..17a8a7ef9f63328844131d9542e8db09b48bb3f4 100644
(file)
--- a/
lisp/emacs-lisp/comp.el
+++ b/
lisp/emacs-lisp/comp.el
@@
-351,10
+351,10
@@
If INPUT is a string this is the file path to be compiled."
(defun comp-new-frame (size)
"Return a clean frame of meta variables of size SIZE."
- (
let ((v (make-vector size nil))
)
-
(cl-loop
for i below size
-
do (aset v i (make-comp-mvar :slot i)
))
-
v
))
+ (
cl-loop with v = (make-vector size nil
)
+
for i below size
+
do (aset v i (make-comp-mvar :slot i
))
+
finally (return v)
))
(cl-defun make-comp-mvar (&key slot (constant nil const-vld) type)
(when const-vld